<?php
/**
 * Created by 荣耀电竞.
 * User: 林子彦 <278805354@qq.com>
 * Date: 2018/7/11 0011
 * Time: 9:39
 */
Route::group(['prefix'=>'admin/ordersys'], function() {
   // Route::get('/excel/export', ['uses' => 'ExcelController@export']);  //产品业绩统计
    //权限
    Route::group(['middleware' => 'permission'], function () {
        Route::get('/order/set_step1', ['uses' => 'OrderController@set_step1']);  //订单添加第一步
        Route::get('/order/set_step2', ['uses' => 'OrderController@set_step2']);  //订单第二步
        Route::get('/vip/add', ['uses' => 'OrderController@vipAdd']);  //订单会员充值
        Route::get('/vip/like', ['uses' => 'OrderController@vipLike']);  //订单会员充值
        Route::get('/friends/index', ['uses' => 'OrderCircleFriendsController@index']);  //朋友圈
        Route::get('/friends/add', ['uses' => 'OrderCircleFriendsController@add']);  //新增图文
        Route::get('/friends/edit', ['uses' => 'OrderCircleFriendsController@edit']);  //新增图文
        Route::get('/friends/add_vedio', ['uses' => 'OrderCircleFriendsController@add_vedio']);  //新增音频
        Route::get('/friends/accept', ['uses' => 'OrderCircleFriendsController@accept']);  //接受
        Route::get('/friends/show', ['uses' => 'OrderCircleFriendsController@show']);  //接受
//=========================================大转盘==========================================
        Route::get('/luckdraw/add', ['uses' => 'LuckDrawController@add']);  //朋友圈
        Route::get('/luckdraw/index', ['uses' => 'LuckDrawController@index']);  //朋友圈
        Route::get('/luckdraw/testmy', ['uses' => 'LuckDrawController@testmy']);  //大转盘
        Route::get('/luckdraw/show_award', ['uses' => 'LuckDrawController@show_award']);  //大转盘
        Route::get('/drawawaer/index', ['uses' => 'DrawawaerController@index']);  //大转盘

        //=========================================================图库操作===========================================================
        Route::get('/material/index', ['uses' => 'OrderCircleMaterialController@index']);  //朋友圈
        Route::get('/material/add', ['uses' => 'OrderCircleMaterialController@add']);  //新增图文
        Route::get('/material/edit', ['uses' => 'OrderCircleMaterialController@edit']);  //新增图文
        Route::get('/material/add_vedio', ['uses' => 'OrderCircleMaterialController@add_vedio']);  //新增音频
        Route::get('/material/show', ['uses' => 'OrderCircleMaterialController@show']);  //接受
        Route::get('/file/index', ['uses' => 'OrderCircleFileController@index']);  //朋友圈
        Route::get('/file/add', ['uses' => 'OrderCircleFileController@add']);  //新增图文
        Route::get('/file/edit', ['uses' => 'OrderCircleFileController@edit']);  //新增图文
        Route::get('/file/add_vedio', ['uses' => 'OrderCircleFileController@add_vedio']);  //新增音频
        Route::get('/file/show', ['uses' => 'OrderCircleFileController@show']);  //接受

        //=======================================================产品入库===============================================================
        Route::get('/goods/index', ['uses' => 'GoodsController@index']);  //广告中心
        Route::get('/goods/add', ['uses' => 'GoodsController@add']);  //广告添加
        Route::get('/goods/edit', ['uses' => 'GoodsController@edit']);  //广告编辑
        //========================================================微信号录入===============================================
        Route::get('/wxuser/index', ['uses' => 'WxuserController@index']);  //广告中心
        Route::get('/wxuser/add', ['uses' => 'WxuserController@add']);  //广告添加
        Route::get('/wxuser/edit', ['uses' => 'WxuserController@edit']);  //广告编辑
        //=======================================================快递===============================================================
        Route::get('/shipping/index', ['uses' => 'ShippingController@index']);  //广告中心
        Route::get('/shipping/add', ['uses' => 'ShippingController@add']);  //广告添加
        Route::get('/shipping/edit', ['uses' => 'ShippingController@edit']);  //广告编辑
        //======================================================产品分类==========================================================
        Route::get('/goodsclass/index', ['uses' => 'GoodsClassController@index']);  //广告中心
        Route::get('/goodsclass/add', ['uses' => 'GoodsClassController@add']);  //广告添加
        Route::get('/goodsclass/edit', ['uses' => 'GoodsClassController@edit']);  //广告编辑
        Route::get('/goodsclass/del', ['uses' => 'GoodsClassController@del']);  //广告编辑
        //=======================================================支付类型===============================================================
        Route::get('/paytype/index', ['uses' => 'PaytypeController@index']);  //广告中心
        Route::get('/paytype/add', ['uses' => 'PaytypeController@add']);  //广告添加
        Route::get('/paytype/edit', ['uses' => 'PaytypeController@edit']);  //广告编辑
        //=========================================================会员录入=====================================================================
        Route::get('/customer/index', ['uses' => 'CustomerController@index']);  //会员列表
        Route::get('/customer/add', ['uses' => 'CustomerController@add']);  //会员添加
        Route::get('/customer/edit', ['uses' => 'CustomerController@edit']);  //会员编辑
        Route::get('/customer/user_list', ['uses' => 'CustomerController@userList']);  //会员列表

        //=========================================================渠道=====================================================================
        Route::get('/channel/index', ['uses' => 'ChannelController@index']);  //渠道列表
        Route::get('/channel/add', ['uses' => 'ChannelController@add']);  //渠道添加
        Route::get('/channel/edit', ['uses' => 'ChannelController@edit']);  //渠道编辑

        //==========================================================审核员会员操作==============================================================
        Route::get('/customer/manage', ['uses' => 'CustomerController@manageIndex']);  //会员列表
        Route::get('/customer/manage/edit', ['uses' => 'CustomerController@manageEdit']);  //会员编辑
        Route::get('customer/manage/sys', ['uses' => 'CustomerController@manageSys']);  //会员列表
        Route::get('/customer/manage/score', ['uses' => 'CustomerController@manageScore']);  //会员列表数据
        Route::get('customer/manage/log', ['uses' => 'CustomerController@manageLog']);  //会员列表
        Route::get('customer/manage/detail', ['uses' => 'CustomerController@manageDetail']);  //会员列表
        //========================================================我订单管理＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
        Route::get('/order/mygoods/list', ['uses' => 'MyOrderController@myGoodsList']);  //我的订单列表
        Route::get('/order/mygoods/show', ['uses' => 'MyOrderController@show']);  //订单产品
        Route::get('/order/myrecharge/list', ['uses' => 'MyOrderController@myRechargeList']);  //订单产品
        Route::get('/order/mygoods/search', ['uses' => 'MyOrderController@search']);  //订单产品
        Route::get('/order/mygoods/edit', ['uses' => 'MyOrderController@edit']);  //编辑订单
        //=========================================================订单审核列表===========================================
        Route::get('/order/apply/index', ['uses' => 'ApplyController@index']);  //订单审核列表
        Route::get('/order/apply/goods', ['uses' => 'ApplyController@goodsIndex']);  //分产品订单审核列表
        Route::get('/order/apply/recharge', ['uses' => 'ApplyController@rechargeIndex']);  //充值订单审核列表
        Route::get('/order/apply/detail', ['uses' => 'ApplyController@detail']);  //充值订单审核列表
        Route::get('/order/apply/excel', ['uses' => 'ApplyController@exportExcel']);  //充值订单审核列表

        Route::get('/order/apply/setshipping', ['uses' => 'ApplyController@setShipping']);  //设置物流
        Route::get('/order/apply/showshipping', ['uses' => 'ApplyController@showShipping']);  //查看物流
        Route::get('/order/refund/index', ['uses' => 'ApplyController@backIndex']);     //退款列表
        Route::get('/order/apply/backmoney', ['uses' => 'ApplyController@backMoney']);  //充值订单审核列表
        Route::get('/order/apply/chart', ['uses' => 'ApplyController@testChart']);  //充值订单审核列表
        //========================================================统计=======================================================
        Route::get('/orderanalysis/index', ['uses' => 'OrderanalysisController@index']);  //销售员统计
        Route::get('/orderanalysis/weixin', ['uses' => 'OrderanalysisController@weixin']);  //微信统计
        Route::get('/orderanalysis/fen', ['uses' => 'OrderanalysisController@fen']);  //粉丝统计
        Route::get('/orderanalysis/month', ['uses' => 'OrderanalysisController@month']);  //月订单统计
        Route::get('/orderanalysis/province', ['uses' => 'OrderanalysisController@province']);  //省份业绩统计
        Route::get('/orderanalysis/city', ['uses' => 'OrderanalysisController@city']);  //城市业绩统计
        Route::get('/orderanalysis/goods', ['uses' => 'OrderanalysisController@goods']);  //产品业绩统计
        Route::get('/orderanalysis/day', ['uses' => 'OrderanalysisController@day']);  //产品业绩统计

    });
   //数据提交
    Route::group(['middleware' => ['permission','response','transaction']], function () {
        Route::post('/order/set_step1', ['uses' => 'OrderController@set_step1']);  //订单第一步
        Route::post('/order/set_step2', ['uses' => 'OrderController@set_step2']);  //订单第二步
        Route::post('/order/save_data', ['uses' => 'OrderController@saveOrderData']);  //订单第二步
        Route::post('/vip/add', ['uses' => 'OrderController@vipAdd']);  //订单会员充值

//=========================================大转盘==========================================
        Route::post('/luckdraw/add', ['uses' => 'LuckDrawController@add']);  //大转盘
        Route::post('/luckdraw/index', ['uses' => 'LuckDrawController@index']);  //大转盘
        Route::post('/luckdraw/add_awards', ['uses' => 'LuckDrawController@add_awards']);  //大转盘
        Route::post('/luckdraw/show_four_one', ['uses' => 'LuckDrawController@show_four_one']);  //大转盘
        Route::post('/luckdraw/testmy', ['uses' => 'LuckDrawController@testmy']);  //大转盘
        Route::post('/luckdraw/show_award', ['uses' => 'LuckDrawController@show_award']);  //大转盘
        Route::post('/drawawaer/index', ['uses' => 'DrawawaerController@index']);  //大转盘
        Route::post('/drawawaer/change/status', ['uses' => 'DrawawaerController@changeStatus']);  //改变状态数据
        Route::post('/drawawaer/index', ['uses' => 'DrawawaerController@index']);  //大转盘

        Route::post('/friends/index', ['uses' => 'OrderCircleFriendsController@index']);  //朋友圈
        Route::post('/friends/add', ['uses' => 'OrderCircleFriendsController@add']);  //新增图文
        Route::post('/friends/del', ['uses' => 'OrderCircleFriendsController@del']);  //新增图文
        Route::post('/friends/edit', ['uses' => 'OrderCircleFriendsController@edit']);  //修改图文
        Route::post('/friends/add_vedio', ['uses' => 'OrderCircleFriendsController@add_vedio']);  //新增音频
        Route::post('/friends/accept', ['uses' => 'OrderCircleFriendsController@accept']);  //接受


        Route::post('/material/index', ['uses' => 'OrderCircleMaterialController@index']);  //朋友圈
        Route::post('/material/add', ['uses' => 'OrderCircleMaterialController@add']);  //新增图文
        Route::post('/material/edit', ['uses' => 'OrderCircleMaterialController@edit']);  //新增图文
        Route::post('/material/add_vedio', ['uses' => 'OrderCircleMaterialController@add_vedio']);  //新增音频
        Route::post('/material/show', ['uses' => 'OrderCircleMaterialController@show']);  //接受
        Route::post('/material/del', ['uses' => 'OrderCircleMaterialController@del']);  //接受
        Route::post('/file/index', ['uses' => 'OrderCircleFileController@index']);  //朋友圈
        Route::post('/file/add', ['uses' => 'OrderCircleFileController@add']);  //新增图文
        Route::post('/file/edit', ['uses' => 'OrderCircleFileController@edit']);  //新增图文
        Route::post('/file/add_vedio', ['uses' => 'OrderCircleFileController@add_vedio']);  //新增音频
        Route::post('/file/show', ['uses' => 'OrderCircleFileController@show']);  //接受
        Route::post('/file/del', ['uses' => 'OrderCircleFileController@del']);  //新增图文
        //=======================================================产品入库===============================================================
        Route::post('/goods/index', ['uses' => 'GoodsController@index']);  //广告列表数据
        Route::post('/goods/add', ['uses' => 'GoodsController@add']);  //广告提交数据
        Route::post('/goods/edit', ['uses' => 'GoodsController@edit']);  //广告编辑数据
        Route::post('/goods/del', ['uses' => 'GoodsController@del']);  //广告删除数据
        Route::post('/goods/change/status', ['uses' => 'GoodsController@changeStatus']);  //改变状态数据
        //======================================================产品分类==========================================================
        Route::post('/goodsclass/index', ['uses' => 'GoodsClassController@index']);  //广告中心
        Route::post('/goodsclass/add', ['uses' => 'GoodsClassController@add']);  //广告添加
        Route::post('/goodsclass/edit', ['uses' => 'GoodsClassController@edit']);  //广告编辑
        Route::post('/goodsclass/del', ['uses' => 'GoodsClassController@del']);  //广告编辑
        Route::post('/goodsclass/change/status', ['uses' => 'GoodsClassController@changeStatus']);  //改变状态数据


        //======================================================微信号录入==========================================================
        Route::post('/wxuser/index', ['uses' => 'WxuserController@index']);  //广告中心
        Route::post('/wxuser/add', ['uses' => 'WxuserController@add']);  //广告添加
        Route::post('/wxuser/edit', ['uses' => 'WxuserController@edit']);  //广告编辑
        Route::post('/wxuser/del', ['uses' => 'WxuserController@del']);  //广告编辑
        Route::post('/wxuser/change/status', ['uses' => 'WxuserController@changeStatus']);  //改变状态数据
        //=======================================================物流===============================================================
        Route::post('/shipping/index', ['uses' => 'ShippingController@index']);  //广告列表数据
        Route::post('/shipping/add', ['uses' => 'ShippingController@add']);  //广告提交数据
        Route::post('/shipping/edit', ['uses' => 'ShippingController@edit']);  //广告编辑数据
        Route::post('/shipping/del', ['uses' => 'ShippingController@del']);  //广告删除数据
        Route::post('/shipping/change/status', ['uses' => 'ShippingController@changeStatus']);  //改变状态数据
        //=======================================================支付类型===============================================================
        Route::post('/paytype/index', ['uses' => 'PaytypeController@index']);  //广告列表数据
        Route::post('/paytype/add', ['uses' => 'PaytypeController@add']);  //广告提交数据
        Route::post('/paytype/edit', ['uses' => 'PaytypeController@edit']);  //广告编辑数据
        Route::post('/paytype/del', ['uses' => 'PaytypeController@del']);  //广告删除数据
        Route::post('/paytype/change/status', ['uses' => 'PaytypeController@changeStatus']);  //改变状态数据
        //=======================================================会员入库===============================================================
        Route::post('/customer/index', ['uses' => 'CustomerController@index']);  //会员列表数据
        Route::post('/customer/add', ['uses' => 'CustomerController@add']);  //会员提交数据
        Route::post('/customer/edit', ['uses' => 'CustomerController@edit']);  //会员编辑数据
        Route::post('/customer/del', ['uses' => 'CustomerController@del']);  //会员删除数据
        Route::post('/customer/change/status', ['uses' => 'CustomerController@changeStatus']);  //改变状态数据
        Route::post('/customer/user_list', ['uses' => 'CustomerController@userList']);  //会员列表

        //=======================================================会员审核员操作============================================================================
        Route::post('/customer/manage', ['uses' => 'CustomerController@manageIndex']);  //会员列表数据
        Route::post('/customer/manage/edit', ['uses' => 'CustomerController@manageEdit']);  //会员编辑数据
        Route::post('/customer/manage/del', ['uses' => 'CustomerController@manageDel']);  //会员删除数据
        Route::post('/customer/change/manage/status', ['uses' => 'CustomerController@changeManageStatus']);  //改变状态数据
        Route::post('/customer/manage/sys', ['uses' => 'CustomerController@manageSys']);  //会员列表数据
        Route::post('/customer/manage/scoreadd', ['uses' => 'CustomerController@manageScore']);  //会员列表数据

        Route::post('customer/manage/log', ['uses' => 'CustomerController@manageLog']);  //会员列表
        Route::post('customer/manage/score', ['uses' => 'CustomerController@manageScoreLog']);  //会员列表
        //=========================================================购物车==========================================================================
        Route::post('/order/add_cart', ['uses' => 'OrderController@addCart']);  //加入购物车
        Route::post('/order/clear_cart', ['uses' => 'OrderController@clearCart']);  //清除购物车
        Route::post('/order/cart_all_price', ['uses' => 'OrderController@getCartAllPrice']);  //加入购物车
        Route::post('/order/update_cart', ['uses' => 'OrderController@updateCart']);  //更新购物车
        //=========================================================我的订单=========================================================================
        Route::post('/order/mygoods/list', ['uses' => 'MyOrderController@myGoodsList']);  //我的订单列表
        Route::post('/order/mygoods/search', ['uses' => 'MyOrderController@search']);  //订单产品
        Route::post('/order/mygoods/show', ['uses' => 'MyOrderController@show']);  //订单产品
        Route::post('/order/mygoods/del', ['uses' => 'MyOrderController@del']);  //删除订单
        Route::post('/order/mygoods/edit', ['uses' => 'MyOrderController@edit']);  //编辑订单
        Route::post('/order/myrecharge/list', ['uses' => 'MyOrderController@myRechargeList']);  //订单产品
        Route::post('/order/myrecharge/del', ['uses' => 'MyOrderController@delRecharge']);  //订单产品
        //=========================================================订单审核列表===========================================
        Route::post('/order/apply/index', ['uses' => 'ApplyController@index']);  //订单审核列表
        Route::post('/order/apply/goods', ['uses' => 'ApplyController@goodsIndex']);  //分产品订单审核列表
        Route::post('/order/apply/recharge', ['uses' => 'ApplyController@rechargeIndex']);  //充值订单审核列表
        Route::post('/order/apply/applytrue', ['uses' => 'ApplyController@applyTrue']);  //充值订单审核列表
        Route::post('/order/apply/applyerror', ['uses' => 'ApplyController@applyError']);  //充值订单审核列表

        Route::post('/order/apply/setshipping', ['uses' => 'ApplyController@setShipping']);  //充值订单审核列表
        //Route::post('/order/apply/updateshipping', ['uses' => 'ApplyController@setShipping']);  //充值订单审核列表
        Route::post('/order/apply/backmoney', ['uses' => 'ApplyController@backMoney']);  //充值订单审核列表

        Route::post('/order/apply/excel', ['uses' => 'ApplyController@exportExcel']);  //充值订单审核列表

        Route::post('/order/refund/index', ['uses' => 'ApplyController@backIndex']);
        Route::post('/order/refund/applytrue', ['uses' => 'ApplyController@backApplyTrue']);
        Route::post('/order/refund/aapplyerror', ['uses' => 'ApplyController@backApplyError']);


        //===========================================================统计模块v==================================================
        Route::post('/orderanalysis/index', ['uses' => 'OrderanalysisController@index']);  //销售员统计
        Route::post('/orderanalysis/weixin', ['uses' => 'OrderanalysisController@weixin']);  //微信统计
        Route::post('/orderanalysis/fen', ['uses' => 'OrderanalysisController@fen']);  //粉丝统计
        Route::post('/orderanalysis/month', ['uses' => 'OrderanalysisController@month']);  //月订单统计
        Route::post('/orderanalysis/province', ['uses' => 'OrderanalysisController@province']);  //省份业绩统计
        Route::post('/orderanalysis/city', ['uses' => 'OrderanalysisController@city']);  //城市业绩统计
        Route::post('/orderanalysis/goods', ['uses' => 'OrderanalysisController@goods']);  //产品业绩统计
        Route::post('/orderanalysis/day', ['uses' => 'OrderanalysisController@day']);  //产品业绩统计
    });
});

